package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户微信资料扩展表
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("user_ext_wechat_profile")
public class UserExtWechatProfile extends Model<UserExtWechatProfile> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 国家
     */
    private String country;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    /**
     * 区
     */
    private String distinct;
    /**
     * 用户使用的语言,zh-CN,zh-TW,en-US
     */
    private String language;
    /**
     * 1:男;2:女;0:未知
     */
    private Integer sex;
    /**
     * 头像url
     */
    @TableField("head_img_url")
    private String headImgUrl;
    /**
     * 是否订阅公众号0：否；1：是
     */
    private Integer subscribe;
    /**
     * 公众号订阅时间
     */
    @TableField("subscribe_time")
    private Date subscribeTime;
    /**
     * 开放平台唯一ID
     */
    private String unionid;
    /**
     * 开放平台移动应用OpenID
     */
    @TableField("openid_mobile")
    private String openidMobile;
    /**
     * 开放平台网站应用OpenID
     */
    @TableField("openid_web")
    private String openidWeb;
    /**
     * 开放平台公众账号/小程序OpenID
     */
    @TableField("openid_biz")
    private String openidBiz;
    /**
     * 开放平台公众号第三方平台OpenID
     */
    @TableField("openid_biz_plugin")
    private String openidBizPlugin;
    /**
     * tagid_list
     */
    @TableField("group_id")
    private String groupId;
    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistinct() {
        return distinct;
    }

    public void setDistinct(String distinct) {
        this.distinct = distinct;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public Integer getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Integer subscribe) {
        this.subscribe = subscribe;
    }

    public Date getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(Date subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getOpenidMobile() {
        return openidMobile;
    }

    public void setOpenidMobile(String openidMobile) {
        this.openidMobile = openidMobile;
    }

    public String getOpenidWeb() {
        return openidWeb;
    }

    public void setOpenidWeb(String openidWeb) {
        this.openidWeb = openidWeb;
    }

    public String getOpenidBiz() {
        return openidBiz;
    }

    public void setOpenidBiz(String openidBiz) {
        this.openidBiz = openidBiz;
    }

    public String getOpenidBizPlugin() {
        return openidBizPlugin;
    }

    public void setOpenidBizPlugin(String openidBizPlugin) {
        this.openidBizPlugin = openidBizPlugin;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserExtWechatProfile{" +
        ", id=" + id +
        ", userId=" + userId +
        ", nickName=" + nickName +
        ", country=" + country +
        ", province=" + province +
        ", city=" + city +
        ", distinct=" + distinct +
        ", language=" + language +
        ", sex=" + sex +
        ", headImgUrl=" + headImgUrl +
        ", subscribe=" + subscribe +
        ", subscribeTime=" + subscribeTime +
        ", unionid=" + unionid +
        ", openidMobile=" + openidMobile +
        ", openidWeb=" + openidWeb +
        ", openidBiz=" + openidBiz +
        ", openidBizPlugin=" + openidBizPlugin +
        ", groupId=" + groupId +
        ", createdTime=" + createdTime +
        "}";
    }
}
